//
//  playerWebVC.m
//  
//
//  Created by 高文萍 on 15/12/25.
//
//

#import "playerWebVC.h"
#import "WanErHeader.h"

@interface playerWebVC ()<UIWebViewDelegate>

@property (nonatomic, strong) UIWebView *webView;
@property (nonatomic, strong) ZWBaseButton *webButton;
@end

@implementation playerWebVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    [self.view addSubview:self.webView];

    NSString *str = [NSString stringWithFormat:@"http://app.ziwoxz.com/agi/scenerie/detail_html/sid/%@",self.uId];
    NSURL *url = [NSURL URLWithString:str];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:request];

    self.webButton = [ZWBaseButton baseButtonFrame:CGRectMake(20, 30, 15, 20) buttonType:UIButtonTypeCustom buttonTitle:nil buttonTitleColor:nil buttonTag:100 buttonImage:[UIImage imageNamed:@"返回-1"]];
    [self.webButton addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    [self.webView addSubview:self.webButton];
    
}

- (void)click:(UIButton *)button
{
    [self.navigationController popViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
